import Vue from 'vue'
import Es6Promise from 'es6-promise'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui'
import { message } from '@/libs/reset-message'

// 初始化样式
import '@/assets/font/font.scss'
import '@/assets/styles/global.scss'
import '@/assets/styles/mixin.scss'

/**
 * 开发环境引入mock
 * 不想使用mock数据时需注释下方代码
 */
if (process.env.NODE_ENV !== 'production') { require('@/mock') }

Es6Promise.polyfill()

/**
 * @description 生产环境关掉提示
 */
Vue.config.productionTip = false

/**
 * @description 引入组件库
 */
Vue.use(Element)
/**
 * @description 全局注册应用配置
 */
Vue.prototype.$message = message

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
}).$mount('#app')
